Skip to content

feat: allow explicit field clearing for channels#413

Merged
liam-mackie merged 1 commit into
mainfrom
lm/allow-clearing-fields
May 20, 2026
Merged

feat: allow explicit field clearing for channels#413
liam-mackie merged 1 commit into
mainfrom
lm/allow-clearing-fields

Conversation

@liam-mackie
Copy link
Copy Markdown
Contributor

Fixes MD-1804

This PR adds a new, wrapped, UpdateRequest[T] type that can be used to force a resource to send its zero value, rather than nil. This is necessary for some resources, like a channel, to clear a specific property's value on server-side, as the omitempty json tag usually prevents this property being sent over the wire.

@liam-mackie liam-mackie merged commit 4d0d0dc into main May 20, 2026
6 checks passed
@liam-mackie liam-mackie deleted the lm/allow-clearing-fields branch May 20, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants